export default {
    //避免{"errMsg":"navigateTo:fail webview count limit exceed"}
    //页面堆栈超过10则会报错
    go : function(path , isLocation = true){
        if (process.env.isMiniprogram) {
            if (getCurrentPages().length > 9 || !isLocation) {
                window.location.href = path
            } else {
                window.open(path)
            }
        }else{
            window.location.href = path
        }
    },
    
}